]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog: don't unlock explicitly on verification-complete
authorRay Strode <rstrode@redhat.com>
Wed, 17 Jul 2013 20:42:33 +0000 (16:42 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 18 Jul 2013 13:23:15 +0000 (09:23 -0400)
logind sends out an "unlock" signal separately when
verification completes and we already listen for that,
so we don't need to unlock on verification-complete, too.

https://bugzilla.gnome.org/show_bug.cgi?id=704347

js/ui/screenShield.js
js/ui/unlockDialog.js

index 35885477cf6025c6c5923aaed2ab6f73f8cc5140..d7bf4616f8818d720b4e414847a1d7541be42edd 100644 (file)
@@ -927,7 +927,6 @@ const ScreenShield = new Lang.Class({
             }
 
             this._dialog.connect('failed', Lang.bind(this, this._onUnlockFailed));
-            this._dialog.connect('unlocked', Lang.bind(this, this._onUnlockSucceded));
         }
 
         this._dialog.allowCancel = allowCancel;
@@ -937,10 +936,6 @@ const ScreenShield = new Lang.Class({
         this._resetLockScreen(true, false);
     },
 
-    _onUnlockSucceded: function() {
-        this.deactivate(true);
-    },
-
     _resetLockScreen: function(animateLockScreen, animateLockDialog) {
         // Don't reset the lock screen unless it is completely hidden
         // This prevents the shield going down if the lock-delay timeout
index f09a09b057273bc095f8693c9fc418ecf75f11b0..e2646ea5c470922e4a2ba803cf4364f0c9d1188b 100644 (file)
@@ -223,22 +223,8 @@ const UnlockDialog = new Lang.Class({
         this._userVerifier.answerQuery(query, this._promptEntry.text);
     },
 
-    _finishUnlock: function() {
-        this._userVerifier.clear();
-        this.emit('unlocked');
-    },
-
     _onVerificationComplete: function() {
         this._userVerified = true;
-        if (!this._userVerifier.hasPendingMessages) {
-            this._finishUnlock();
-        } else {
-            let signalId = this._userVerifier.connect('no-more-messages',
-                                                      Lang.bind(this, function() {
-                                                          this._userVerifier.disconnect(signalId);
-                                                          this._finishUnlock();
-                                                      }));
-        }
     },
 
     _onReset: function() {